<div class="page-content" xmlns="http://www.w3.org/1999/html">
    <div class="col-sm-6 pull-right">

        <button class="btn btn-sm btn-primary pull-right" onclick="javascript:window.location.href = '{:url("index")}'">
            返回列表
            <i class="icon-reply icon-only"></i>
        </button>
    </div>
    <div class="page-header">
        <h1>
            {:model('menu')->getParentNname()}
            <small>
                <i class="ace-icon fa fa-angle-double-right"></i>
                {:input('id')?'编辑':'新增'}
            </small>
        </h1>
    </div><!-- /.page-header -->

    <div class="row">
        <div class="col-xs-12">
            <!-- PAGE CONTENT BEGINS -->
            <form class="form-horizontal" role="form" action="{:input('sta_id')?url('gdpUpdateSecurity'):url('add')}" method="post" name="myfrom" >
                {:input('sta_id')?'<input type="hidden" value="'.$info['sta_id'].'" name="sta_id">':''}
                <div class="form-group">
                    <label class="col-sm-3 control-label no-padding-right">国内生产总值(GDP) :</label>
                    <div class="col-sm-9">
                        <input type="text" class="col-xs-10 col-sm-5" value="{$info.val|default=''}" name="gdp"/>
                    </div>
                </div>
                <div class="space-4"></div>

                <div class="form-group">
                    <label class="col-sm-3 control-label no-padding-right">年份 : </label>
                    <div class="col-sm-9">
                        <select class="col-xs-10 col-sm-5" name="year">
                            <option value='0'>--选项--</option>
                            {volist name="year" id="v"}
                                <option value='{$v}' <?php if($v==$info['year']){ echo 'selected="selected"';}?>>{$v}年</option>
                            {/volist} 
                        </select>
                    </div>
                </div>
                <div class="space-4"></div>

                <div class="form-group">
                    <label class="col-sm-3 control-label no-padding-right">季度 : </label>
                    <div class="col-sm-9">
                        <select class="col-xs-10 col-sm-5" name="quarter">
                            <option value='0'>--选项--</option>
                            {volist name="quarter" id="o"}
                                <option value='{$o.val}' <?php if($o['val']==$info['num']){ echo 'selected="selected"';}?>>{$o.name}</option>
                            {/volist}
                        </select>
                    </div>
                </div>
                <div class="space-4"></div>

                <div class="clearfix form-actions">
                    <div class="col-md-offset-3 col-md-9">
                        <button class="btn btn-info" type="button" onclick="myfrom.submit()">
                            <i class="ace-icon fa fa-check bigger-110"></i>
                            提交
                        </button>
                        &nbsp; &nbsp; &nbsp;
                        <button class="btn" type="reset">
                            <i class="ace-icon fa fa-undo bigger-110"></i>
                            重置
                        </button>
                    </div>
                </div>
            </form>
            <!-- PAGE CONTENT ENDS -->
        </div><!-- /.col -->
    </div><!-- /.row -->
</div><!-- /.page-content -->